home *** CD-ROM | disk | FTP | other *** search
/ Official HTML Publishing…scape (Macintosh Edition) / Official HTML Publishing for Netscape - Macintosh Edition.iso / Mac 68K Launch Me / Mac 68K Launch Me.rsrc / CODE_65_OSMenu.txt < prev    next >
Text File  |  1996-08-14  |  7KB  |  125 lines

  1. # near model CODE resource
  2. # jump table entries: 64520-64536 (17 of them)
  3. 00000000  FFFF                     .extension 0xFFF // unimplemented
  4. 00000002  FC08                     .extension 0xC08 // unimplemented
  5. 00000004  0000 0134                ori.b      D0, 0x34 /* '4' */
  6. 00000008  594F                     subq.w     A7, 4
  7. 0000000A  3F2F 0008                move.w     -[A7], [A7 + 0x8]
  8. 0000000E  2F2F 000C                move.l     -[A7], [A7 + 0xC]
  9. 00000012  A931                     syscall    NewMenu
  10. 00000014  205F                     movea.l    A0, [A7]+
  11. 00000016  2008                     move.l     D0, A0
  12. 00000018  4E75                     rts
  13. 0000001A  2F2F 0004                move.l     -[A7], [A7 + 0x4]
  14. 0000001E  2F2F 000E                move.l     -[A7], [A7 + 0xE]
  15. 00000022  A933                     syscall    AppendMenu
  16. 00000024  7000                     moveq.l    D0, 0x00
  17. 00000026  4E75                     rts
  18. 00000028  554F                     subq.w     A7, 2
  19. 0000002A  2F2F 0006                move.l     -[A7], [A7 + 0x6]
  20. 0000002E  A950                     syscall    CountMItems
  21. 00000030  301F                     move.w     D0, [A7]+
  22. 00000032  4E75                     rts
  23. 00000034  2F0A                     move.l     -[A7], A2
  24. 00000036  246F 0008                movea.l    A2, [A7 + 0x8]
  25. 0000003A  4A92                     tst.l      [A2]
  26. 0000003C  6706                     beq        +0x8 /* 00000044 */
  27. 0000003E  2F12                     move.l     -[A7], [A2]
  28. 00000040  A932                     syscall    DisposeMenu
  29. 00000042  4292                     clr.l      [A2]
  30. label00000044:
  31. 00000044  7000                     moveq.l    D0, 0x00
  32. 00000046  245F                     movea.l    A2, [A7]+
  33. 00000048  4E75                     rts
  34. 0000004A  2F2F 0004                move.l     -[A7], [A7 + 0x4]
  35. 0000004E  4EAD BAC0                jsr        [A5 - 0x4540]
  36. 00000052  7000                     moveq.l    D0, 0x00
  37. 00000054  584F                     addq.w     A7, 4
  38. 00000056  4E75                     rts
  39. 00000058  594F                     subq.w     A7, 4
  40. 0000005A  A93B                     syscall    GetMenuBar
  41. 0000005C  205F                     movea.l    A0, [A7]+
  42. 0000005E  2008                     move.l     D0, A0
  43. 00000060  4E75                     rts
  44. 00000062  2F2F 0004                move.l     -[A7], [A7 + 0x4]
  45. 00000066  A93C                     syscall    SetMenuBar
  46. 00000068  7000                     moveq.l    D0, 0x00
  47. 0000006A  4E75                     rts
  48. 0000006C  A937                     syscall    DrawMenuBar
  49. 0000006E  7000                     moveq.l    D0, 0x00
  50. 00000070  4E75                     rts
  51. 00000072  A934                     syscall    ClearMenuBar
  52. 00000074  7000                     moveq.l    D0, 0x00
  53. 00000076  4E75                     rts
  54. 00000078  2F2F 0004                move.l     -[A7], [A7 + 0x4]
  55. 0000007C  3F2F 000C                move.w     -[A7], [A7 + 0xC]
  56. 00000080  A935                     syscall    InsertMenu
  57. 00000082  7000                     moveq.l    D0, 0x00
  58. 00000084  4E75                     rts
  59. 00000086  2F2F 0008                move.l     -[A7], [A7 + 0x8]
  60. 0000008A  206F 0008                movea.l    A0, [A7 + 0x8]
  61. 0000008E  2050                     movea.l    A0, [A0]
  62. 00000090  4868 000E                pea.l      [A0 + 0xE]
  63. 00000094  4EAD B008                jsr        [A5 - 0x4FF8]
  64. 00000098  7000                     moveq.l    D0, 0x00
  65. 0000009A  504F                     addq.w     A7, 8
  66. 0000009C  4E75                     rts
  67. 0000009E  2F2F 0004                move.l     -[A7], [A7 + 0x4]
  68. 000000A2  3F2F 000C                move.w     -[A7], [A7 + 0xC]
  69. 000000A6  2F2F 0010                move.l     -[A7], [A7 + 0x10]
  70. 000000AA  A946                     syscall    GetMenuItemText/GetItem
  71. 000000AC  7000                     moveq.l    D0, 0x00
  72. 000000AE  4E75                     rts
  73. 000000B0  2F2F 0004                move.l     -[A7], [A7 + 0x4]
  74. 000000B4  3F2F 000C                move.w     -[A7], [A7 + 0xC]
  75. 000000B8  2F2F 0010                move.l     -[A7], [A7 + 0x10]
  76. 000000BC  A947                     syscall    SetMenuItemText/SetItem
  77. 000000BE  7000                     moveq.l    D0, 0x00
  78. 000000C0  4E75                     rts
  79. 000000C2  302F 0008                move.w     D0, [A7 + 0x8]
  80. 000000C6  48C0                     ext.l      D0
  81. 000000C8  7201                     moveq.l    D1, 0x01
  82. 000000CA  E1A9                     lsl        D1, D0
  83. 000000CC  206F 0004                movea.l    A0, [A7 + 0x4]
  84. 000000D0  2050                     movea.l    A0, [A0]
  85. 000000D2  C2A8 000A                and.l      D1, [A0 + 0xA]
  86. 000000D6  4A81                     tst.l      D1
  87. 000000D8  56C1                     sne        D1
  88. 000000DA  4401                     neg.b      D1
  89. 000000DC  49C1                     lea.l      A4, D1
  90. 000000DE  1001                     move.b     D0, D1
  91. 000000E0  4E75                     rts
  92. 000000E2  4A2F 000A                tst.b      [A7 + 0xA]
  93. 000000E6  670C                     beq        +0xE /* 000000F4 */
  94. 000000E8  2F2F 0004                move.l     -[A7], [A7 + 0x4]
  95. 000000EC  3F2F 000C                move.w     -[A7], [A7 + 0xC]
  96. 000000F0  A939                     syscall    EnableItem
  97. 000000F2  600A                     bra        +0xC /* 000000FE */
  98. label000000F4:
  99. 000000F4  2F2F 0004                move.l     -[A7], [A7 + 0x4]
  100. 000000F8  3F2F 000C                move.w     -[A7], [A7 + 0xC]
  101. 000000FC  A93A                     syscall    DisableItem
  102. label000000FE:
  103. 000000FE  7000                     moveq.l    D0, 0x00
  104. 00000100  4E75                     rts
  105. 00000102  554F                     subq.w     A7, 2
  106. 00000104  2F2F 0006                move.l     -[A7], [A7 + 0x6]
  107. 00000108  3F2F 000E                move.w     -[A7], [A7 + 0xE]
  108. 0000010C  486F 0006                pea.l      [A7 + 0x6]
  109. 00000110  A943                     syscall    GetItmMark
  110. 00000112  4A57                     tst.w      [A7]
  111. 00000114  56C0                     sne        D0
  112. 00000116  4400                     neg.b      D0
  113. 00000118  49C0                     lea.l      A4, D0
  114. 0000011A  544F                     addq.w     A7, 2
  115. 0000011C  4E75                     rts
  116. 0000011E  2F2F 0004                move.l     -[A7], [A7 + 0x4]
  117. 00000122  3F2F 000C                move.w     -[A7], [A7 + 0xC]
  118. 00000126  1F2F 0010                move.b     -[A7], [A7 + 0x10]
  119. 0000012A  A945                     syscall    CheckItem
  120. 0000012C  7000                     moveq.l    D0, 0x00
  121. 0000012E  4E75                     rts
  122. 00000130  0000 0000                ori.b      D0, 0x0
  123. 00000134  0000 0000                ori.b      D0, 0x0
  124. 00000138  0000 0000                ori.b      D0, 0x0
  125.